package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.HouseUser;
import com.cy.pj.sys.pojo.SysHouse;
import com.cy.pj.sys.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DaoHouse {
    //根据条件查询房屋
    List<HouseUser> findHouses(String room, String area, Integer price, String place,
                               String state, Integer startIndex, Integer pageSize);
    //根据条件查询条数
    int getRowCount(String room,String area,Integer price,String place,String state);

    //根据id或userid查询房屋信息
    List<SysHouse> findHouseById(Integer id,Integer user_id);

    //基于id删除 房屋信息
    int deleteHouse(Integer id);

}